.class Les/hj$a;
.super Landroid/os/AsyncTask;
.source "GifPlayer.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/hj;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "a"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask<",
        "Ljava/lang/Void;",
        "Landroid/graphics/Bitmap;",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Les/hj;


# direct methods
.method constructor <init>(Les/hj;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/hj$a;->a:Les/hj;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Void;
    .locals 11

    const/4 p1, 0x0

    .line 1
    :try_start_0
    iget-object v0, p0, Les/hj$a;->a:Les/hj;

    invoke-static {v0}, Les/hj;->a(Les/hj;)Les/cm;

    move-result-object v0

    invoke-interface {v0}, Les/cm;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/hj$a;->a:Les/hj;

    invoke-static {v0}, Les/hj;->a(Les/hj;)Les/cm;

    move-result-object v0

    invoke-interface {v0}, Les/cm;->h()Ljava/io/File;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Les/hj$a;->a:Les/hj;

    invoke-static {v0}, Les/hj;->a(Les/hj;)Les/cm;

    move-result-object v0

    invoke-interface {v0}, Les/cm;->i()Ljava/lang/String;

    move-result-object v0

    .line 5
    :goto_0
    invoke-virtual {p0}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v1

    if-eqz v1, :cond_1

    return-object p1

    .line 6
    :cond_1
    invoke-static {v0}, Les/xj;->b(Ljava/lang/String;)Les/wj;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-nez v0, :cond_2

    new-array v0, v2, [Landroid/graphics/Bitmap;

    aput-object p1, v0, v1

    .line 7
    invoke-virtual {p0, v0}, Landroid/os/AsyncTask;->publishProgress([Ljava/lang/Object;)V

    return-object p1

    .line 8
    :cond_2
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v3

    move-object v5, p1

    .line 9
    :goto_1
    invoke-virtual {p0}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v6

    if-nez v6, :cond_6

    .line 10
    invoke-virtual {v0, v5}, Les/wj;->a(Landroid/graphics/Bitmap;)Les/wj$a;

    move-result-object v5

    if-nez v5, :cond_3

    new-array v0, v2, [Landroid/graphics/Bitmap;

    aput-object p1, v0, v1

    .line 11
    invoke-virtual {p0, v0}, Landroid/os/AsyncTask;->publishProgress([Ljava/lang/Object;)V

    return-object p1

    .line 12
    :cond_3
    iget-object v6, v5, Les/wj$a;->a:Landroid/graphics/Bitmap;

    new-array v7, v2, [Landroid/graphics/Bitmap;

    aput-object v6, v7, v1

    .line 13
    invoke-virtual {p0, v7}, Landroid/os/AsyncTask;->publishProgress([Ljava/lang/Object;)V

    .line 14
    iget v7, v5, Les/wj$a;->b:I

    if-nez v7, :cond_4

    const/16 v5, 0x64

    goto :goto_2

    :cond_4
    iget v5, v5, Les/wj$a;->b:I

    :goto_2
    int-to-long v7, v5

    .line 15
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v9

    sub-long/2addr v9, v3

    sub-long/2addr v7, v9

    const-wide/16 v3, 0x0

    cmp-long v5, v7, v3

    if-lez v5, :cond_5

    .line 16
    invoke-virtual {p0}, Landroid/os/AsyncTask;->isCancelled()Z

    move-result v3

    if-nez v3, :cond_5

    .line 17
    invoke-static {v7, v8}, Landroid/os/SystemClock;->sleep(J)V

    .line 18
    :cond_5
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v3

    move-object v5, v6

    goto :goto_1

    .line 19
    :cond_6
    invoke-virtual {v0}, Les/wj;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-object p1
.end method

.method protected varargs a([Landroid/graphics/Bitmap;)V
    .locals 2

    .line 20
    iget-object v0, p0, Les/hj$a;->a:Les/hj;

    const/4 v1, 0x0

    aget-object p1, p1, v1

    invoke-virtual {v0, v0, p1}, Les/hj;->a(Les/hj;Landroid/graphics/Bitmap;)V

    return-void
.end method

.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 0

    .line 1
    check-cast p1, [Ljava/lang/Void;

    invoke-virtual {p0, p1}, Les/hj$a;->a([Ljava/lang/Void;)Ljava/lang/Void;

    move-result-object p1

    return-object p1
.end method

.method protected bridge synthetic onProgressUpdate([Ljava/lang/Object;)V
    .locals 0

    .line 1
    check-cast p1, [Landroid/graphics/Bitmap;

    invoke-virtual {p0, p1}, Les/hj$a;->a([Landroid/graphics/Bitmap;)V

    return-void
.end method
